package com.lehuowujie.lehuomarket.adapter;

import android.content.Context;
import android.widget.ImageView;
import com.youth.banner.loader.ImageLoader;

/**
 * Created by 王瑞铭 on 2017/1/13.
 */
public class HomeBannerLoader extends ImageLoader {
    @Override
    public void displayImage(Context context, Object path, ImageView imageView) {
        int resId = (int) path;
        imageView.setImageResource(resId);
        imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);
    }

}
